# 魔术方法

class A:
    def __init__(self, age):
        self.age = age

    def __lt__(self, other):
        print('...')
        # return self.age.__lt__(other.age)
        return self.age < other.age


int

a = A(18)
b = A(19)

print(a < b)


class B(list):
    def __len__(self):
        print('ssss')
        return 6


b1 = B([1, 2, 3, 4])
print(len(b1))


print('cd'<'dc')


# s = 'abc\bef'
# print(s)